<template>
    <a-result status="404" title="401" sub-title="抱歉，当前您没有权限访问！">
        <template #extra>
            <a-button @click="redirectFunc" type="primary">返回</a-button>
        </template>
    </a-result>
</template>
<script lang="ts" setup>
import { useRouter } from "vue-router";

const router = useRouter();
const redirectFunc = () => {
    router.push('/login');
}
</script>